import Vue from 'vue'
import VueRouter from 'vue-router'
import Search from '../views/Search.vue'
import rout from '../views/rout.vue'
import Park from "../views/Park.vue"
import num from "../views/num.vue"
import user from "../views/User.vue"
import login from "../views/Login.vue"

Vue.use(VueRouter)

const routes = [
 
 {
   path: "/search",
   name: "search",
   component: Search
 },
 {
   path: "/rout",
   name: "rout",
   component: rout
 },
 {
  path: "/park",
  name: "park",
  component: Park
},
{
  path: "/num",
  name: "num",
  component: num
},
{
  path: "/user",
  name: "user",
  component: user
},
{
  path: "/",
  name: "login",
  component: login
},
]

const router = new VueRouter({
  mode: 'history',
  routes
})

export default router
